package com.ruibang.glass.material.service.bcp;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.material.domain.req.bcp.BcpProductsOutReq;
import com.ruibang.glass.material.domain.req.bcp.ManageBCPOutInReq;
import com.ruibang.glass.material.dto.BCPOutAndInManagementDTO;
import com.ruibang.glass.material.entity.bcp.MaterialBcpProductsInInfo;
import com.ruibang.glass.material.entity.bcp.MaterialBcpProductsOut;

import java.util.List;

/**
 * <p>
 * 半成品出库详情 服务类
 * </p>
 *
 * @author mameng
 * @since 2024-04-02
 */
public interface MaterialBcpProductsOutService extends IService<MaterialBcpProductsOut> {
    /**
     * 列表查询
     * @param bcpProductsOutReq
     * @return
     */
    IPage<MaterialBcpProductsOut> getPage(BcpProductsOutReq bcpProductsOutReq);

    IPage<BCPOutAndInManagementDTO> getPageDTO(ManageBCPOutInReq manageBCPOutInReq);

    void addMaterialBcpProductsInInfoList(MaterialBcpProductsOut materialBcpProductsOut);
    /**
     * 计算库存
     * @param materialBcpProductsOut
     */
    void updateItemHouse(MaterialBcpProductsOut materialBcpProductsOut);

    void updateMaterialBcpProductsInInfoList(MaterialBcpProductsOut materialBcpProductsOut);


    MaterialBcpProductsOut getMaterialBcpProductsOutById(String id);


    void processNotice(String id);



}
